package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TbDictMapMapper;
import com.ruoyi.system.domain.TbDictMap;
import com.ruoyi.system.service.ITbDictMapService;

/**
 * 字典映射表Service业务层处理
 * 
 * @author 唐冰倩
 * @date 2025-02-20
 */
@Service
public class TbDictMapServiceImpl implements ITbDictMapService 
{
    @Autowired
    private TbDictMapMapper tbDictMapMapper;

    /**
     * 查询字典映射表
     * 
     * @param mapId 字典映射表主键
     * @return 字典映射表
     */
    @Override
    public TbDictMap selectTbDictMapByMapId(String mapId)
    {
        return tbDictMapMapper.selectTbDictMapByMapId(mapId);
    }

    /**
     * 查询字典映射表列表
     * 
     * @param tbDictMap 字典映射表
     * @return 字典映射表
     */
    @Override
    public List<TbDictMap> selectTbDictMapList(TbDictMap tbDictMap)
    {
        return tbDictMapMapper.selectTbDictMapList(tbDictMap);
    }

    /**
     * 新增字典映射表
     * 
     * @param tbDictMap 字典映射表
     * @return 结果
     */
    @Override
    public int insertTbDictMap(TbDictMap tbDictMap)
    {
        return tbDictMapMapper.insertTbDictMap(tbDictMap);
    }

    /**
     * 修改字典映射表
     * 
     * @param tbDictMap 字典映射表
     * @return 结果
     */
    @Override
    public int updateTbDictMap(TbDictMap tbDictMap)
    {
        return tbDictMapMapper.updateTbDictMap(tbDictMap);
    }

    /**
     * 批量删除字典映射表
     * 
     * @param mapIds 需要删除的字典映射表主键
     * @return 结果
     */
    @Override
    public int deleteTbDictMapByMapIds(String[] mapIds)
    {
        return tbDictMapMapper.deleteTbDictMapByMapIds(mapIds);
    }

    /**
     * 删除字典映射表信息
     * 
     * @param mapId 字典映射表主键
     * @return 结果
     */
    @Override
    public int deleteTbDictMapByMapId(String mapId)
    {
        return tbDictMapMapper.deleteTbDictMapByMapId(mapId);
    }
}
